package com.sg.business.commons.labelprovider.usertask;

import java.util.Date;

import com.mobnut.commons.util.Utils;
import com.sg.business.model.UserTask;

public class CompleteDateHtmlLabel extends AbstractUserTaskHtmlLabel {

	@Override
	public String getUserTaskText(UserTask userTask) {
		Object value = userTask.getValue("Completed"); //$NON-NLS-1$
		if (value instanceof Date) {
			return String.format(Utils.FORMATE_DATE_FULL, value);
		}
		return ""; //$NON-NLS-1$
	}

}
